class ArcExprFileGenerator

  def self.initializeArcXSLT(arc, update = false)
    @arc = arc

    return if !update && File.exists?(arc.xslt_path)
    create_xslt(arc.xslt_url)
  end

  private

  def self.create_xslt(uri)
    return unless uri

    #store xslt and includes/imports to local filesystem
    xslt_fn = @arc.xslt_path.split(File::Separator).last
    FileGenerator.locate_and_store_includes(uri, @arc.base_path, [], xslt_fn)
  end

end
